//
//  ViewController.swift
//  AriaNgUI
//
//  Created by 石正义 on 2017/9/7.
//  Copyright © 2017年 Peter. All rights reserved.
//

import Cocoa
import WebKit

class ViewController: NSViewController {
    
    @IBOutlet var webView : WKWebView!
    @IBOutlet var mainMenu : NSMenu?;

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let webUrl = Bundle.main.url(forResource: "index", withExtension: "html", subdirectory: "src")
        let webRequest = URLRequest(url: webUrl!)
        self.webView.load(webRequest)
    }

    override var representedObject: Any? {
        didSet {
        // Update the view, if already loaded.
        }
    }

    func clickMenuItem(_ sender:NSMenuItem){
        print(sender.title)
    }

}

